// eslint-disable-next-line @typescript-eslint/no-namespace

import { GoodsTypeEnum, objTypeEnum } from "./enum";

export namespace GoodsTypes {
    export interface IGoodsItem{
        goodsCode: number; //'商品编码',
        goodsName: string; //商品名称',
        type: GoodsTypeEnum;
        categoryId: number; //商品类目',
        originalPrice: number; //原始价格',
        salePrice: number; //售卖价格',
        status: number; //商品状态',
        barcode: string; //条码',
        mainImage: string; //商品主图',
        description: string; //商品详情',
        context: string;
        creator: string;
        createTime: string;
        updator: string;
        updateTime: string;
        duration?: number; //服务时长
        isHot: number
       }

     export type PageGoodsType = Partial<Pick<IGoodsItem,"goodsCode"|"goodsName"|"categoryId"|"barcode"|"status">>


     export type GoodsType = Partial<Pick<GoodsTypes.IGoodsItem,"goodsCode"|"goodsName"|"status"> & {
      type:objTypeEnum,
      quantity:number,
      schemeGearId?: number | undefined;
      id?: number;
      salePrice ?:number
  }>
}
/*  */